package com.frp.lib.client;

import com.frp.lib.config.ProxyModel;
import com.frp.lib.message.Message;
import io.netty.channel.ChannelHandlerContext;

/**
 * Created by hujianjun on 12/5 0005.
 */
public interface ClientApi {
    void connect();

    void onLoginResp(ChannelHandlerContext ctx, Message.LoginResp loginResp);

    void onMessage(Message msg);

    void onStartWorkConn(ChannelHandlerContext ctx, Message.StartWorkConn msg);

    String getRunId();

    ProxyModel.ProxyDefine getProxyDefine(String name);
    Proxy getProxy(String name);
}
